<template>
    <div>
        <div v-if="this.admin_cookie != null">
            <adminpage></adminpage>
        </div>
        <div v-else>
            <adminlogin></adminlogin>
        </div>
    </div>
</template>

<script>
import Adminlogin from '../components/adminlogin.vue';
import adminpage from '../components/adminpage.vue';
export default {
  components: { adminpage, Adminlogin },
    name: "adminindex",
    data() {
      return {
        admin_cookie:'',
      }
    },
    mounted(){
        this.admin_cookie = this.$cookies.get("adminname");
        console.log(this.$cookies.get("product_first"));
    }
}
</script>

<style scoped>
</style>